//
//  PersonPannel.h
//  TipsProject
//
//  Created by Suny on 15/6/9.
//  Copyright (c) 2015年 Suny. All rights reserved.
//

#import "BaseView.h"
#import "UserInfo.h"

typedef NS_ENUM(NSInteger, PersonPannelTapState) 
{
	PersonPannelTapStateTips = 1000,
	PersonPannelTapStateAttention = 2000,
	PersonPannelTapStateAttentioned = 3000
};

@class PersonPannel;

@interface TapItemView : UIView
@property (nonatomic, assign) BOOL selected;
@property (nonatomic, strong)UILabel *titleLabel;

@property (nonatomic, strong)UILabel *numberLabel;

@property (nonatomic, strong)UIImageView *maskImageView;

@end
@protocol PersonPannelDelegate  <NSObject>

- (void)personPannel:(PersonPannel *)pannel tapItem:(TapItemView *)itemView;
- (void)personPannel:(PersonPannel *)pannel tapTipSegmentIndex:(NSInteger)index;
@end

@interface PersonPannel : UICollectionReusableView

@property (nonatomic, readonly)PersonPannelTapState state;
@property (nonatomic, readonly)TapItemView *currentTapItemView;
@property (nonatomic, readonly)NSInteger segmentIndex;

@property (nonatomic, strong)UserInfo *userInfo;

@property (nonatomic,weak) id<PersonPannelDelegate>pannelDelegate;
@end
